package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 场次记录表
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-RoundRecord")
@Data
@TableName(value = "round_record")
public class RoundRecord {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 会员id
     */
    @TableField(value = "member_id")
    @ApiModelProperty(value="会员id")
    private Long memberId;

    /**
     * 场次id
     */
    @TableField(value = "round_id")
    @ApiModelProperty(value="场次id")
    private Long roundId;

    /**
     * 会员昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value="会员昵称")
    private String nickname;

    /**
     * 会员头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value="会员头像")
    private String avatar;

    /**
     * 行程id
     */
    @TableField(value = "travel_id")
    @ApiModelProperty(value="行程id")
    private Integer travelId;

    /**
     * 会员状态
0-刚刚加入集结
1-集结中
2-结束集结
     */
    @TableField(value = "status")
    @ApiModelProperty(value="会员状态,0-刚刚加入集结,1-集结中,2-结束集结")
    private Byte status;

    @TableField(value = "create_time")
    @ApiModelProperty(value="")
    private Date createTime;

    public static final String COL_ID = "id";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_ROUND_ID = "round_id";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_TRAVEL_ID = "travel_id";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";
}